package dao;

import java.sql.ResultSet;

import conector.mysql;

public class competicionesDao {

	public ResultSet getCompeticionesPorCategoria(int categoria){
		String queryString ="SELECT id as id_competicion FROM competiciones WHERE id_categoria="+categoria;
		//System.out.println(queryString);
		ResultSet resultSet = mysql.queryObj(queryString);
		return resultSet;
	}
	
	public ResultSet getAllCompeticiones(){
		String queryString ="SELECT id as id_competicion FROM competiciones";
		ResultSet resultSet = mysql.queryObj(queryString);
		return resultSet;
	}
	
}
